package com.sunnada.nginx.service;

import com.sunnada.nginx.bean.nginx.http.upstream.Upstream;
import com.sunnada.nginx.exception.CustonException;

import java.util.List;

public interface UpstreamService {
    List<Upstream> list() throws CustonException;

    Upstream one(String name) throws CustonException;

    boolean post(Upstream upstream) throws CustonException;

    boolean put(Upstream upstream) throws CustonException;

    boolean delete(String name) throws CustonException;
}
